package com.org.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.org.dao.IAddressDao;
import com.org.model.Address;
import com.org.service.IAddressService;

@Service
@SuppressWarnings("all")
public class AddressServiceImpl implements IAddressService
{
	@Resource
	private IAddressDao addressDao;

	@Override
	public Map getReceiptAddressListByBuyerId(Map params) throws Exception
	{
		return addressDao.getReceiptAddressListByBuyerId(params);
	}

	@Override
	public Address getReceiptAddressInfoById(String receiptAddId) throws Exception {
		return addressDao.getReceiptAddressInfoById(receiptAddId);
	}

	@Override
	public void addReceiptAddress(Address entity) throws Exception {
		addressDao.addReceiptAddress(entity);
	} 
	
	@Override
	public void updateReceiptAddress(Address entity) throws Exception {
		addressDao.updateReceiptAddress(entity);
		
	}
	
	public void deleteReceiptAddress(String primaryKey) throws Exception {
		addressDao.deleteReceiptAddress(primaryKey);
	}
	
 

	
	public List<Address> getAddressByBuyerId(String buyerId) throws Exception {
		return addressDao.getAddressByBuyerId(buyerId);
	}

	

}
